<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>子元素过滤器</title>
    <script src="https://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
    <style>
        .sogreen{
            background-color: green;
        }
    </style>
</head>
<body>
<div>
    <p>s1</p>
    <p>s1</p>
    <p>s1</p>
    <p>s1</p>
</div>
<div>
    <p>s1</p>
    <p>s1</p>
    <p>s1</p>
    <p>s1</p>
</div>
<div>
    <p>s1</p>
    <p>s1</p>
    <p>s1</p>
    <p>s1</p>
</div>
<script type="text/javascript" src="../static/child.js"></script>
</body>
</html>